/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testcode;

import java.awt.*;
import java.applet.Applet;
public class RectDemo extends Applet {

@Override
public void paint(Graphics g)
{g.drawRect(20,20,60,60);
g.fillRect(120,20,60,60);
g.setColor(Color.red);
g.drawRoundRect(220,20,60,60,20,20);
g.fillRoundRect(320,20,60,60,20,20);
g.setColor(Color.pink);
g.fill3DRect(420,20,60,60,true);
g.fill3DRect(520,20,60,60,false);
}
}